
public class Airport {
	
	// Basic info
	private String icao;
	private String name;
	private String city;
	private String country;
	
	// Location info
	private int latitude;
	private int longitude;
	
	// Extra info
	private int altitude;
	private float timezone;
	private char dst_zone;
	private int passengers;
	private int runway;
	
	public Airport(){
	}

	public String getIcao() {
		return icao;
	}

	public void setIcao(String icao) {
		this.icao = icao;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public int getLatitude() {
		return latitude;
	}

	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public int getLongitude() {
		return longitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}

	public int getAltitude() {
		return altitude;
	}

	public void setAltitude(int altitude) {
		this.altitude = altitude;
	}

	public float getTimezone() {
		return timezone;
	}

	public void setTimezone(float timezone) {
		this.timezone = timezone;
	}

	public char getDst_zone() {
		return dst_zone;
	}

	public void setDst_zone(char dst_zone) {
		this.dst_zone = dst_zone;
	}

	public int getPassengers() {
		return passengers;
	}

	public void setPassengers(int passengers) {
		this.passengers = passengers;
	}

	public int getRunway() {
		return runway;
	}

	public void setRunway(int runway) {
		this.runway = runway;
	}

	public String databaseString() {
		
		return "INSERT INTO airport VALUES ('" + icao + "','" + name + "','" + city + "','" + country + "'," + latitude + "," + longitude + "," + runway + "," + passengers + ");";
	}
	
}
